<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录页面</title>
</head>
<body>

<div th:if="${param.error}">
    用户名或者密码错误
</div>
<div th:if="${param.logout}">
    用户已登出
</div>

<form th:action="@{/login}" method="post">
    <input type="text" name="username"><br />
    <input type="password" name="password"><br />
    <input type="submit" value="submit">
</form>

</body>
</html>